export interface IhospitalListPrams {
  page: number
  limit: number
  hosname: string
  hoscode: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  status: string
}

export interface IhospitalListItem {
  id: string
  createTime: string
  updateTime?: string
  // isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  address?: string
  districtCode: string
  logoData: string
  intro: string
  route: string
  status: number
  bookingRule?: null
}

export type IhospitalListsType = IhospitalListItem[]

export interface IhospitalListsResponse {
  content: IhospitalListsType
  totalElements: number
}

export interface IcodeListItem {
  cycle: number
  releaseTime: string
  stopTime: string
  quitTime: string
  rule: string[]
  quitDay?: number
}

export interface ProvinceItem {
  id: number
  name: string // 名称
  value: string // 选中的值
  // 只定义需要使用的数据，不用的可以不定义
  // "parentId": number,
  // "createTime": "2020-06-23 15:48:53",
  // "updateTime": "2020-06-23 15:52:57",
  // "isDeleted": 0,
  // "param": {},
  // "dictCode": null,
  // "hasChildren": true
}

export type ProvinceList = ProvinceItem[]

export type IcodeListsResponse = IcodeListItem[]

export interface IhosdetailRespone {
  bookingRule: IcodeListItem
  hospital: IhospitalListItem
}

//医院科室单个门诊数据格式
export interface IdepartmentItem {
  depcode: string
  depname: string
  children: null
}

//医院科室单个门诊数据格式
export type IdepartmentItemType = IdepartmentItem[]

//医院科室数据格式
export interface Idepartment {
  depcode: string
  depname: string
  children: IdepartmentItemType
  disabled?: boolean
}

export type IdepartmentType = Idepartment[]

//医院排班单天数据格式
export interface IworkDate {
  workDate: string
  workDateMd: null
  dayOfWeek: string
  docCount: number
  reservedNumber: number
  availableNumber: number
  status: null
}

//医院排班时间规则数据格式
export interface IgetScheduleRule {
  total: number
  bookingScheduleList: IworkDate[]
}

//单个医生排班数据格式
export interface IsheduleControllerItem {
  title: string
  skill: string
  workDate: string
  reservedNumber: number
  availableNumber: number
  amount: number
  hosScheduleId: string
  param:{
    hosname: string
    depname: string
  }
}

export type IsheduleControllerType = IsheduleControllerItem[]